// import { Message, MessageBox } from "element-ui";
import { validate } from "./Constant";
import * as api from "./api";

export default {
  install(Vue) {
    //提示信息
    Vue.prototype.$api = api;
    Vue.prototype.$validate = validate;
    // Vue.prototype.$error = message => Message({ type: "error", message });
    // Vue.prototype.$success = message => Message({ type: "success", message });
    // Vue.prototype.$confirm = message =>
    //   MessageBox.confirm(message, "提示", {
    //     confirmButtonText: "确定",
    //     cancelButtonText: "取消",
    //     type: "warning"
    //   });
  }
};
